package com.meituan.sdk.model.ddzh.thirdresource.billiardTableInfoSync;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 球桌数据变更同步
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/thirdresource/billiard/tableInfo/sync",
    businessId = 58,
    apiVersion = "10000",
    apiName = "billiard_table_info_sync",
    needAuth = true
)
public class BilliardTableInfoSyncRequest implements MeituanRequest<BilliardTableInfoSyncResponse> {
    /**
    * <p data-diff-id="ct-diff-id-07460535-e876-4677-bede-226fa6b1cce0">门店球桌信息列表</p>
    */
    @NotEmpty(message = "poiBallTableInfo不能为空")
    @SerializedName("poiBallTableInfo")
    private List<PoiBallTableInfoDTO> poiBallTableInfo;

    public List<PoiBallTableInfoDTO> getPoiBallTableInfo() {
        return poiBallTableInfo;
    }
    public void setPoiBallTableInfo(List<PoiBallTableInfoDTO> poiBallTableInfo) {
        this.poiBallTableInfo = poiBallTableInfo;
    }


    @Override
    public MeituanResponse<BilliardTableInfoSyncResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<BilliardTableInfoSyncResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "BilliardTableInfoSyncRequest{" + "poiBallTableInfo=" + poiBallTableInfo + "}";
    }
}
